package com.lcgs.manage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lcgs.common.annotation.Excel;
import com.lcgs.common.core.domain.BaseEntity;

/**
 * 购物车对象 tb_cart
 *
 * @author lc
 * @date 2025-09-18
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Integer cartId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Integer merchantId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer productId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer number;

    /** 商品金额 */
    @Excel(name = "商品金额")
    private BigDecimal amount;

    /** 创建时间 */
    private Date creatTime;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    // getter 和 setter 方法保持不变
    public void setCartId(Integer cartId)
    {
        this.cartId = cartId;
    }

    public Integer getCartId()
    {
        return cartId;
    }

    public void setMerchantId(Integer merchantId)
    {
        this.merchantId = merchantId;
    }

    public Integer getMerchantId()
    {
        return merchantId;
    }

    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getProductId()
    {
        return productId;
    }

    public void setNumber(Integer number)
    {
        this.number = number;
    }

    public Integer getNumber()
    {
        return number;
    }

    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("cartId", getCartId())
                .append("merchantId", getMerchantId())
                .append("productId", getProductId())
                .append("number", getNumber())
                .append("amount", getAmount())
                .append("creatTime", getCreatTime())
                .append("image", getImage())
                .toString();
    }
}
